<?php
/** This file is part of KCFinder project
  *
  *      @desc Base configuration file
  *   @package KCFinder
  *   @version 2.51
  *    @author Pavel Tzonkov <pavelc@users.sourceforge.net>
  * @copyright 2010, 2011 KCFinder Project
  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
  *      @link http://kcfinder.sunhater.com
  */

// IMPORTANT!!! Do not remove uncommented settings in this file even if
// you are using session configuration.
// See http://kcfinder.sunhater.com/install for setting descriptions
/*配置kcfinder用于文件上传*/
$up_url="../../../uploads/".date("Y");
//echo $up_url;
if(!is_dir($up_url)){
	mkdir($up_url,0755);
	$file=$up_url."/index.html";
	fopen($file, "w+");
	file_put_contents($file,'<!-- -->');
}
$up_url=$up_url.date("/m");
if(!is_dir($up_url)){
	mkdir($up_url,0755);
	$file=$up_url."/index.html";
	fopen($file, "w+");
	file_put_contents($file,'<!-- -->');
}
$_CONFIG = array(
		'disabled'=>empty($_SESSION['file_upload_allowed']),
		'denyZipDownload' => true,
		'denyUpdateCheck' => false,
		'denyExtensionRename' => false,

		'theme'=>"oxygen",
        'uploadURL'=>$up_url,
		'uploadDir'=>"",
		'dirPerms' => 0755,
		'filePerms' => 0644,

		'access' => array(

				'files' => array(
						'upload' => true,
						'delete' => false,
						'copy' => true,
						'move' => true,
						'rename' => false
				),

				'dirs' => array(
						'create' => false,
						'delete' => false,
						'rename' => false
				)
		),

		'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl",

		'types' => array(

				// CKEditor & FCKEditor types
				'files'   =>  "",
				'flash'   =>  "swf",
				'images'  =>  "*img",

				// TinyMCE types
				'file'    =>  "",
				'media'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm",
				'image'   =>  "*img bmp",
		),

		'filenameChangeChars' => array(
		' ' => "_",
        ':' => "."
),

		'dirnameChangeChars' => array(
		' ' => "_",
        ':' => "."
),

		'mime_magic' => "",

		'maxImageWidth' => 0,
		'maxImageHeight' => 0,

		'thumbWidth' => 100,
		'thumbHeight' => 100,

		'thumbsDir' => ".thumbs",

		'jpegQuality' => 90,

		'cookieDomain' => "",
		'cookiePath' => "",
		'cookiePrefix' => 'KCFINDER_',

		// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION
		'_check4htaccess' => true,
		'_tinyMCEPath' => "../tinymce",

		'_sessionVar' => &$_SESSION['KCFINDER'],
/*	  
        '_sessionLifetime' => 30,
		'_sessionPath' => "../../data/sessions/",
		'_sessionDomain' => "localhost",
*/);
?>